package com.itheima.object1;

public class SpringSubString {
    public static void main(String[] args) {
        String s="itheima";
        String s1 = s.substring(5,7);
        String s2 = s.substring(5);
        System.out.println(s1);
        System.out.println(s2);
        String s3 = s.replace("hei", "**"); //使用指定的字面值替换序列替换此字符中所有匹配
        System.out.println(s3);


    }
}
